﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Drawing;

namespace OrangePrj
{
    [Serializable]
    public class Event
    {
        public static int count = 0;

        public int Number {get; set;}
        public int Rank {get; set;}

        private WorkList inWork;
        private WorkList outWork;


        public WorkList InWork
        {
            get {return inWork;}
            set {inWork = value;}
        }
        public WorkList OutWork
        {
            get {return outWork;}
            set {outWork = value;}
        }
        public Event()
        { }
        public Event(Project project)
        {
            Number = count;
            Rank = 0;
            inWork = new WorkList();
            outWork = new WorkList();
            count++;
            project.eventList.Add(this);
        }

    }
}
